package pack0603;

//累加计算 1+2+....100
public class DemoD {
    public static void main(String[] args) {
        int num=1;
        int res=0;
        while (num<=100) {
            res=num+res;
            num++;
        }
        System.out.println(res);
        System.out.println((100+1)*100/2);
    }
}
